<div class="container">                                                                                      
  <div class="table-responsive">          
  <table class="table">
    <thead>
      <tr>
        <th>序号</th>
        <th>标题</th>
        <th>图片</th>
        <th>链接</th>
      </tr>
    </thead>
    <tbody>
        <tr><td colspan="4" class='text-center'>
            <form role="form" action="http://myolnote.olnote.com/welcome/search/" id='formdata' method="post">
              <div class="form-group">
                <input type="text" name='title' value='<?php print($title); ?>' class="form-control" id="name" placeholder="请输入标题">
              </div>
              <button class='submit'>提交</button>
            </form>
        </td></tr>
        <tr><td colspan="4" class='text-center'><?php print("总记录条数为：".$pages."条");?></td></tr>
        <?php
            $str = '';
            foreach($list as $k =>$v){
                $key = ++$k;
                $str .= '<tr>';
                $str .= '<td>'.$key.'</td>';
                $str .= '<td>'.$v->title.'</td>';
                $str .= '<td><img class="img-fluid" src="'.__IMGS__.'/'.$v->ipath.'" alt="Chania"></td>';
                $str .= '<td><a class="btn btn-info" href="'.$v->url.'">链接</a></td>';
                $str .= '</tr>';
            }
            print($str);
        ?>
        <tr><td colspan="4" class='text-center'><?php print($page);?></td></tr>
    </tbody>
  </table>
  </div>
</div>
